import cn from '../cn';

type CardProps = {
  children: React.ReactNode;
  className?: string;
  noPadding?: boolean;
};

export default function Card({ children, className, noPadding }: CardProps) {
  const paddingClass = noPadding ? '' : 'p-4';

  return <div className={cn(className, paddingClass, 'border bg-white rounded')}>{children}</div>;
}
